<template>
	<view class="content">
		<view class="title">{{title}}...</view>
		<view class="art-content">
			<rich-text class="richText" :nodes="strings"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				strings : ''
			}
		},
		onLoad:function(e){
			console.log(e);
			this.$http.get("/resourceshare/taCztResourceshare/queryById",{
			 	  params: {'id':e.newsid}
			 	  }).then(res=> {	
						if (res.data.code  == 200) {
							  			this.title = res.data.result.title;
							  			this.strings = res.data.result.resourceContentString;
							       }
								 
			});			
		}
	}
</script>

<style>
.content{padding:10upx 2%; width: 96%; flex-wrap:wrap;}
.title{line-height:2em; font-weight:700; font-size:38upx;}
.art-content{line-height:2em;}
</style>
